package com.itheima.oopadvanced.extendsdemo;

/**
 * @author Anomaly
 * @date 2022/12/12 15:42
 */

/**
 * 父类
 */
public class People {
    private String name;
    private int age;

    public void queryCourse() {
        System.out.println(name + "在查看课表。。");
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public static void test() {
        System.out.println("=======People.test()======");
    }
}
